//
//  PreLeftDetailViewController.m
//  Project_A Gary
//
//  Created by leilei on 16/4/3.
//  Copyright © 2016年 www.lei.com. All rights reserved.
//

#import "PreLeftDetailViewController.h"

@interface PreLeftDetailViewController ()

@end

@implementation PreLeftDetailViewController

-(void)dealloc
{
    [_modelId release];
    [super dealloc];

}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
     //创建webView
        UIWebView *leftWeb = [[UIWebView alloc] initWithFrame:self.view.frame];
        [self.view addSubview:leftWeb];
    
     //数据解析
        NSString *str = [NSString stringWithFormat:@"http://mrobot.pcauto.com.cn/v3/price/promotionDetailv45/12906383?type=0&modelId=%@", self.modelId];
        NSURL *url = [NSURL URLWithString:str];
        NSURLRequest *request = [NSURLRequest requestWithURL:url];
        [leftWeb loadRequest:request];
    
    
        [leftWeb release];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
